#pragma once 

#include "GameState.h"
#include "GameManagement.h"

class GameMenuState : public GameState
{
protected:
	GameManagement* _game;
	GameMenuState();
public:
	GameMenuState(GameManagement* game) { _game = game; }
	~GameMenuState();

	virtual void update() { _game->updateGameMenu(); }
	virtual void draw() 
	{ 
		_game->drawGameMenu(); 
	}
	virtual LPWSTR getBackgroundPath() { return NULL; }
	virtual void setInput(int keycode, bool onHold) 
	{
		if (onHold) return;
		switch (keycode)
		{
		case DIK_SPACE: 
			if (_game->getGameMenu()->checkSetInput()) {
				_game->setState(_GSTATE_RUN);
			}
			break;
		}
	}
};